import Koa from "koa";

const Port = 8000;

async function apply(ctx,next) {
    await next();
    ctx.body = `<h1>Koa模型响应成功</h1>`;
}

let app = new Koa();
app.use(apply)

app.listen(Port,()=>{
    console.log(`服务已在http://127.0.0.1:${Port}上运行 `);
    
})